import request from '@/utils/request'

// 查询研学打卡记录列表
export function listStudypunch(query) {
	return request({
		url: '/studytourism/studypunch/list',
		method: 'get',
		params: query
	})
}

// 查询研学打卡记录详细
export function getStudypunch(punchId) {
	return request({
		url: '/studytourism/studypunch/' + punchId,
		method: 'get'
	})
}
// 根据日期查询打卡记录
export function applistStudypunch(query) {
	return request({
		url: '/app/studytourism/studypunch/list',
		method: 'get',
		params: query
	})
}

// 新增研学打卡记录
export function addStudypunch(data) {
	return request({
		url: '/studytourism/studypunch',
		method: 'post',
		data: data
	})
}

// 修改研学打卡记录
export function updateStudypunch(data) {
	return request({
		url: '/studytourism/studypunch',
		method: 'put',
		data: data
	})
}

// 删除研学打卡记录
export function delStudypunch(punchId) {
	return request({
		url: '/studytourism/studypunch/' + punchId,
		method: 'delete'
	})
}